<table class="table table-bordered  table-hover ">
<thead >
 <thead>
        <tr>
           <th width="80"  class="th-sortable"  data-sort-name="id">ID</th>
            <th>素材分类</th>
            <th>素材图片</th>
            <th>素材文案</th>
            <th >类型</th>
            <th >所需积分</th>
            <th width="130" align="center">状态</th>
            <th width="180">创建时间</th>
            <th width="130">操作</th>
        </tr>
    </thead>
<tbody>

{volist name="data.list" id="vo" }
 <tr>
       <td>{$vo.id}</td>
       <td>{$vo.cate_name}</td>
       <td>
           {if condition="$vo.type == 2 || $vo.type == 3"}
           <img src="{$vo.cover}" style="width: 50px;height: 50px"/>
           {else}
           {volist name="$vo.images" id="img" }
           <img src="{$img}" style="width: 50px;height: 50px"/>
           {/volist}
           {/if}
       </td>
       <td>{$vo.content}</td>
       <td>{$vo.type_text}</td>
       <td>{$vo.price}</td>
       <td align="center"><a href="#" data-remote="{:url('ajaxEdit',array('id'=>$vo['id'],'field'=>'status'))}" class="{$vo.status|tplckval='=1','active'}"  data-toggle="class" data-ajax="true">
           <i class="fa fa-check text-success text-active">显示</i>
           <i class="fa fa-times text-danger text">隐藏</i></a></td>
       <td>{$vo.add_time}</td>
       <td>
           <a href="{:url('info',array('id'=>$vo['id']))}" class="m-xs" title="编辑"><i class="fa fa-edit text-muted"></i></a>
           <a href="{:url('del',array('id'=>$vo['id']))}" data-toggle="ajaxRemove" data-msg="确定删除 {$vo.title}？" class="m-xs" title="删除">
                <i class="fa fa-trash text-muted"></i>
           </a>
       </td>
</tr>
{/volist}
</tbody>
</table>
{empty name="data.list"}
<table width="100%" >
 	<tr><td height="300" colspan="8" align="center" valign="middle" >没有相关数据！</td></tr>
</table>
{/empty}
